package com.citycloud.ccuap.tc.sync.dto;

import static org.springframework.data.mybatis.annotations.Id.GenerationType.AUTO;

import java.util.Date;

import org.springframework.data.mybatis.annotations.Column;
import org.springframework.data.mybatis.annotations.Condition;
import org.springframework.data.mybatis.annotations.Entity;
import org.springframework.data.mybatis.annotations.Id;

import com.citycloud.ccuap.framework.service.Model;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 同步数据实体对象
 *
 * @author suf
 */
@Data
@NoArgsConstructor
@Entity(table = "sys_sync_log")
public class SysSyncLog implements Model {
	private static final long serialVersionUID = 1L;

	@Id(strategy = AUTO)
	@Column(name = "log_id")
	@Condition
	private Long logId;

	@Column(name = "model_name")
	@Condition
	private String modelName;

	@Column(name = "upload_flag")
	@Condition
	private Short uploadFlag;

	@Column(name = "json")
	@Condition
	private String json;

	@Column(name = "operate_type")
	@Condition
	private String operateType;

	@Column(name = "operate_time")
	@Condition
	private Date operateTime;

	@Column(name = "app_code")
	@Condition
	private Date appCode;
}